<template>
  <div class="box">
    <el-carousel :interval="5000" indicator-position="none" arrow="hover" height="236px">
      <el-carousel-item v-for="item in 4" :key="item">
        <div class="newsTitle">这是文章标题这是文章标题这是文章标题这是文章标题这是文章标题这是文章标题</div>
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="scss" scoped>
  .box{
    height: 236px;
    background-color: #8e5bdf;
    .newsTitle{
      width: 100%;
      padding: 0 20px;
      height: 49px;
      box-sizing: border-box;
      line-height: 49px;
      font-size: 18px;
      background-color: #1A52A5;
      color: #fff;
      opacity: .9;
      position: absolute;
      bottom: 0;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
    }
  }
</style>